﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@model sipfe.model.dataAccess.SIPDetSolicitud
@using Resources;
<script type="text/javascript">
    $(function() {
        setAutoAyudaMultiple("#vDestino", "/Auto/AutoAyuda/ListaAreaMultipleDerivar");
    });
</script>
<script type="text/javascript" language="javascript" src="@Url.Content(@properties.dependenciaJS)" ></script>
<script type="text/javascript" language="javascript" src="@Url.Content(@properties.validatelJS)" ></script>
<script type="text/javascript" language="javascript" src="@Url.Content(@properties.unobtrusiveJS)" ></script>

 @using (Html.BeginForm("registraDerivacion", "Bandeja", FormMethod.Post, new { enctype = "multipart/form-data", id = "frmDerivarBandeja" }))
 {
    
    @Html.ValidationSummary(false, "Los Siguientes Campos son Obligatorios:")
    <table border="0" cellpadding="2" cellspacing="0">
        <tbody class="tituloCelesteB8">
            <tr>
                <td>Número de Documento</td>
                <td style="width:10px;" align="center">:</td>
                <td class="textNormal8">@ViewBag.solicitud</td>
            </tr>
        </tbody>
    </table>
    <table border="0" style="width:80%;" cellpadding="2" cellspacing="0" >
    <tr>
        <td>
            <fieldset style="width:800px;" class="fieldset1">
                <legend class="legend2">Derivar Documento</legend>
                <table border="0" style="width:800px;" cellpadding="2" cellspacing="0" class="tablaInterna1">
                    <tbody class="tituloCelesteB8">							
                        <tr>
                            <td style="width:80px;">De</td>
                            <td>:</td>
                            <td>
                                <table border="0" style="width:100%;" cellpadding="0" cellspacing="0">
                                    <tbody class="tituloCelesteB8">
                                    <tr>
                                        <td class="textNormal8">@Session["vCodUsuario"]&nbsp;[ <span id="divBandejaDerivar">@Session["vDependencia"]&nbsp;-&nbsp;@Session["nIdeDep"] </span>]</td>
                                        <td align="right">Para</td>
                                        <td>:</td>
                                        <td>@Html.DropDownList("nIdePara", (IEnumerable<SelectListItem>)ViewBag.Para, new { @class = "select8" })</td>
                                        <td style="width:10px;">&nbsp;</td>
                                        <td align="right">Prioridad</td>
                                        <td>:</td>
                                        <td>@Html.DropDownList("nIdePrioridad", (IEnumerable<SelectListItem>)ViewBag.Prioridad, new { @class = "select8" })</td>
                                        <td style="width:10px;">&nbsp;</td>
                                        <td align="right"># de Folios</td>
                                        <td>:</td>
                                        <td>
                                            @Html.TextBoxFor(model => model.nFolios, new { style = "width:20px;", maxlength = 3, onkeypress = "return validarSoloNumeros(event);" })
                                        </td>
                                    </tr>
                                </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>Destinatario(s)</td>
                            <td>:</td>
                            <td class="textNormal8"> 
                                <table border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>@Html.TextAreaFor(model => model.vDestino, new { style = "width:653px;", maxlength = 200, onblur="javascript:ValidaDestinoOnBlur(this,this.value);"  })</td>
                                        <td><img src="@Url.Content("~/images/buscar.gif")" alt="AREAS PARA DERIVAR" title="AREAS PARA DERIVAR" class="lupita2" onclick="javascript:ListarAreaPoRegionForDerivar('#divPopup2JQ');" /></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>Sumilla</td>
                            <td>:</td>
                            <td>
                                @Html.TextAreaFor(model => model.vSumilla, new { style = "width:653px;", maxlength = 200, onblur="javascript:onBlurUpper(this);", onkeypress = "return validaAlfaNumTamanio(this,event,200);" })
                            </td>
                        </tr>                        
                        <tr>
                            <td>Adjunto</td>
                            <td>:</td>
                            <td>
                                <input type="file" style="width:660px;"  class="textBoxMin tituloCelesteB8" name="idAdjunto" id="idAdjunto"  onchange="javscript:validaAdjuntoDerivar(this);" />
                            </td>
                        </tr>
                        <tr>
                            <td>Doc. de Refer.</td>
                            <td>:</td>
                            <td>
                                <table border="0" cellpadding="0" cellspacing="0">
                                    <tr>                                        
                                        <td>@Html.DropDownList("nIdeTipoDoc", (IEnumerable<SelectListItem>)ViewBag.DocAcompa, new { @class = "select8" })</td> 
                                        <td>-</td>
                                        <td>
                                            @Html.TextBoxFor(model => model.vNumDocum, new { style = "width:300px;", maxlength = 100, onblur="javascript:onBlurUpper(this);", onkeypress = "return validaAlfaNumTamanio(this,event,100);" })
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr><td colspan="3">&nbsp;</td></tr>
                    </tbody>
                </table>
            </fieldset>
        </td>
    </tr>
    <tr align="center">
        <td>
            <table border="0" cellpadding="0" cellspacing="0" >
                <tr>                   
                    <td>
                        <input type="button" value="Derivar"  onclick="javascript: registraDerivacion(this,this.form);"   />
                    </td>
                    <td style="width: 20px;">&nbsp;</td>                    
                </tr>
            </table>
        </td>
    </tr>
</table>
     @Html.HiddenFor(model => model.nIdeUsuReg, new { Value = @Session["nIdeUsuario"] })
     @Html.HiddenFor(model => model.nIdeSol, new { Value = @ViewBag.nIdeSol })
     @Html.HiddenFor(model => model.nSeqPaso, new { Value = @ViewBag.nSeqPaso })
     @Html.HiddenFor(model => model.nSeqActor, new { Value = @ViewBag.nSeqActor})
     @Html.HiddenFor(model => model.nIdeDep, new { Value = @Session["nIdeDep"]})
     @Html.HiddenFor(model => model.nIdeFuncionario, new { Value = @Session["nIdeFuncionario"]})
     
     
     
 }
